<include file="public:header" />
<include file="public:left" />

<div class="flexigrid">
    <div class="mDiv">
        <div class="ftitle">
            <h3>经销商信息</h3>
            <h5><a class="fr" href="javascript:void(0)" onclick="history.go(-1)">返回上一页</a></h5>
        </div>
        </div>
    </div>
<form method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" <if condition="isset($data['id'])">value="{$data.id}"</if> />
    <section>
        <ul class="ulColumn2">
            <li>
                <span class="item_name" style="width:120px;">会员：</span>
                <select name="uid" id="member" class="textbox textbox_295" style="height: 35px">
                    <volist name="member" id="vo">
                        <option value="{$vo.id}"  <if condition="$data['uid'] eq $vo['id']" >selected </if>>{$vo.nickname}-{$vo.mobile}</option>
                    </volist>
                </select>
                <input type="text" name="name" placeholder="可搜索会员昵称，手机号码"  class="search textbox textbox_295" />
            </li>
            <li>
                <span class="item_name" style="width:120px;">代理商：</span>
                <input type="text" name="name" <if condition="isset($data['name'])" >value="{$data.name}"</if> class="textbox textbox_295" />
            </li>
            <li>
                <span class="item_name" style="width:120px;">姓名：</span>
                <input type="text" name="realname" <if condition="isset($data['realname'])" >value="{$data.realname}" </if> class="textbox textbox_295" />
            </li>
            <li>
                <span class="item_name" style="width:120px;">手机号码：</span>
                <input type="text" name="mobile" <if condition="isset($data['mobile'])" >value="{$data.mobile}" </if> class="textbox textbox_295" />用于登录后台账号
            </li>
            <li>
                <span class="item_name" style="width:120px;">密码：</span>
                <input type="password" name="password" placeholder="密码" class="textbox textbox_295" />
              </li>
            <if condition="isset($data['county'])">
            <li>
                <span class="item_name" style="width:120px;">区域：</span>
                {$data['province']}-{$data['city']}-{$data['county']}
            </li>
            </if>
            <li>
                <span class="item_name" style="width:120px;">区域：</span>
                <select id="s_province" name="province"></select>
                <select id="s_city" name="city" ></select>
                <select id="s_county" name="county"></select>
            </li>

            <li>
                <span class="item_name" style="width:120px;"></span>
                <input type="submit" class="link_btn" value="提交" />
            </li>
        </ul>
    </section>
</form>

</div>
</section>
</body>
<script class="resources library" src="__STATIC__/admin/js/area.js" type="text/javascript"></script>
<script type="text/javascript">_init_area();</script>
<script>

  $(".search").keyup(function(){
      $.post("{:url('center/sou')}",{key:$(this).val()},function(result){
          $("#member").html(result);
      });
             });

</script>
</html>